<?php

namespace app\common\validate;

use think\Validate;

class Transitcompany extends Validate
{
    /**
     * 定义验证规则
     * 格式：'字段名'	=>	['规则1','规则2'...]
     *
     * @var array
     */	
	protected $rule = [
        'Name|运输单位名称'   =>  ['require'],
        'Tel|紧急联系方式'   =>  ['require'],
        'Address|具体地址'   =>  ['require'],
        'TransitNumber|营运证号'   =>  ['require'],
        'Lon|地图定位'   =>  ['require'],
        'Lat|地图定位'   =>  ['require'],
    ];
    
    /**
     * 定义错误信息
     * 格式：'字段名.规则名'	=>	'错误信息'
     *
     * @var array
     */	
    protected $message = [
      
    ];

    protected $scene = [
        'companycreate'  =>  ['Name','Tel','Address','TransitNumber','Lon','Lat'],
    ];

}
